home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_3.adf / Compiler_headers / Include / errno.h < prev    next >
C/C++ Source or Header  |  1992-07-30  |  2KB  |  80 lines

  1. /* Copyright (c) 1992 SAS Institute, Inc., Cary, NC USA */
  2. /* All Rights Reserved */
  3.  
  4.  
  5. #ifndef  _ERRNO_H
  6. #define  _ERRNO_H  1
  7.  
  8. /***
  9. *
  10. * The following symbols are the error codes use by the system
  11. * functions.  Typically, a function returns -1 when an error occurs,
  12. * and the global integer named errno contains one of these values.
  13. *
  14. ***/
  15.  
  16. #define EOSERR -1    /* Operating system error */
  17.  
  18. #define EPERM 1        /* User is not owner */
  19. #define ENOENT 2    /* No such file or directory */
  20. #define ESRCH 3        /* No such process */
  21. #define EINTR 4        /* Interrupted system call */
  22. #define EIO 5        /* I/O error */
  23. #define ENXIO 6        /* No such device or address */
  24. #define E2BIG 7        /* Arg list is too long */
  25. #define ENOEXEC 8    /* Exec format error */
  26. #define EBADF 9        /* Bad file number */
  27. #define ECHILD 10    /* No child process */
  28. #define EAGAIN 11    /* No more processes allowed */
  29. #define ENOMEM 12    /* No memory available */
  30. #define EACCES 13    /* Access denied */
  31. #define EFAULT 14    /* Bad address */
  32. #define ENOTBLK 15    /* Bulk device required */
  33. #define EBUSY 16    /* Resource is busy */
  34. #define EEXIST 17    /* File already exists */
  35. #define EXDEV 18    /* Cross-device link */
  36. #define ENODEV 19    /* No such device */
  37. #define ENOTDIR 20    /* Not a directory */
  38. #define EISDIR 21    /* Is a directory */
  39. #define EINVAL 22    /* Invalid argument */
  40. #define ENFILE 23    /* No more files (units) allowed */
  41. #define EMFILE 24    /* No more files (units) allowed for this process */
  42. #define ENOTTY 25    /* Not a terminal */
  43. #define ETXTBSY 26    /* Text file is busy */
  44. #define EFBIG 27    /* File is too large */
  45. #define ENOSPC 28    /* No space left */
  46. #define ESPIPE 29    /* Seek issued to pipe */
  47. #define EROFS 30    /* Read-only file system */
  48. #define EMLINK 31    /* Too many links */
  49. #define EPIPE 32    /* Broken pipe */
  50. #define EDOM 33        /* Math function argument error */
  51. #define ERANGE 34    /* Math function result is out of range */
  52.  
  53.  
  54. extern int errno;
  55. extern int __sys_nerr;
  56. extern char *__sys_errlist[];
  57.  
  58. /***
  59. *     OS error information
  60. ***/
  61.  
  62. extern int _OSERR;
  63.  
  64. extern int __os_nerr;
  65.  
  66. extern struct {
  67.     short errnum;
  68.     char  *msg;
  69. } __os_errlist[];
  70.  
  71. #ifndef _STRICT_ANSI
  72. #define OSERR _OSERR
  73. #define os_nerr __os_nerr
  74. #define os_errlist __os_errlist
  75. #define sys_nerr __sys_nerr
  76. #define sys_errlist __sys_errlist
  77. #endif
  78.  
  79. #endif
  80.